<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link href="https://cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>

<div class="container">
    <table class="table">
        <tr>
            <td>#</td>
            <td>email</td>
            <td>name</td>
            <td>subject</td>
            <td>message</td>
            <td>created_at</td>
        </tr>
        @foreach ($message as $m)
            <tr>
                <td>{{ $m->id }}</td>
                <td>{{ $m->email }}</td>
                <td>{{ $m->name }}</td>
                <td>{{ $m->subject }}</td>
                <td>{{ $m->message }}</td>
                <td>{{ $m->created_at }}</td>
            </tr>
        @endforeach
        {!! $message->links() !!}
    </table>



</div>




</body>
</html>